package com.hdoit.apollo.logical.purchase.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.tennetcn.data.dao.base.impl.SuperService;
import com.hdoit.apollo.logical.purchase.dao.IPurchaseCollocationDao;
import com.hdoit.apollo.logical.purchase.model.PurchaseCollocation;
import com.hdoit.apollo.logical.purchase.service.IPurchaseCollocationService;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年05月23日 11:02:21
 * @comment
 */
@Component
public class PurchaseCollocationServiceImpl extends SuperService<PurchaseCollocation> implements IPurchaseCollocationService{

	@Autowired
	private IPurchaseCollocationDao purchaseCollocationDao;
	
	@Override
	public boolean deletePurchaseCollocations(String purchaseId) {
		
		return purchaseCollocationDao.deletePurchaseCollocations(purchaseId);
	}

	@Override
	public List<PurchaseCollocation> getListByIds(String[] purchaseCollocationIds) {
		return purchaseCollocationDao.getListByIds(purchaseCollocationIds);
	}

	@Override
	public PurchaseCollocation queryModelById(String purchaseCollocationId) {
		return purchaseCollocationDao.queryModelById(purchaseCollocationId);
	}

	@Override
	public List<PurchaseCollocation> queryListByPurchaseId(String purchaseId) {
		
		return purchaseCollocationDao.queryListByPurchaseId(purchaseId);
	}



	@Override
	public PurchaseCollocation queryModelByCollocationId(String collocationId,
			String purchaseId) {
		
		return purchaseCollocationDao.queryModelByCollocationId(collocationId,purchaseId);
	}

}